import {defineConfig} from "vite";
import uni from "@dcloudio/vite-plugin-uni";

const path = require('path');

export default defineConfig({
    plugins: [uni()],
    resolve: {
        alias: {
            '~': path.resolve(__dirname, './src'),
            '@': path.resolve(__dirname, './src')
        },
        extensions: ['.js', '.ts', '.jsx', '.tsx', '.json', '.vue', '.mjs'] // 类型： string[] 导入时想要省略的扩展名列表。
    },
});
